FROM ubuntu:latest
LABEL maintainer="aoqingy"

RUN apt-get update && \
    apt-get install -y nginx && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*

COPY Mixly_Arduino.tar.gz /tmp/Mixly_Arduino.tar.gz

RUN tar -xzf /tmp/Mixly_Arduino.tar.gz -C /var/www/html/ && \
    rm /tmp/Mixly_Arduino.tar.gz

RUN echo "daemon off;" >> /etc/nginx/nginx.conf

EXPOSE 80

CMD ["nginx"]
